<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
    <title>TreeHole Admin - Login</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/css/main.css" />
</head>
<body>
	<div id="page">
		<div id="header">
			<div id="logo">
				<img src="${pageContext.request.contextPath }/images/logo.png" alt="logo" />
			</div>
		</div>
		<div id="content">
			<div class="login_box">
				<form action="admin_login.do" method="post">
					<label>账&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:</label>
					<input id="uemail" type="text" name="user.uemail" placeholder="Email" />
					<label>密&nbsp;&nbsp;&nbsp;&nbsp;码&nbsp;:</label>
					<input id="passwd" type="password" name="user.passwd" placeholder="Password" />
					<input id="sub_bt" type="submit" value="登   录" />
				</form>
			</div>
			<div id="forgot">
				<a href="">忘记密码？</a>
			</div>
			<div id="meg">
				<p>
					${message}
				</p>
			</div>
		</div>
		<div id="footer">
			<ul>
				<li><a href="">关于树洞</a>&nbsp;&nbsp;&nbsp;&nbsp;</li>
				<li><a href="">隐私政策</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;</li>
				<li>TreeHole公司版权所有 © 1997-2012</li>
			</ul>
		</div>	
	</div>
	<script type="text/javascript">
  	var message = "${message}";
  	if("" != message) {
  		document.getElementById("meg").style.visibility="visible";
  		if(message.match("密码")) {
  			document.getElementById("passwd").focus();
  		}else if(message.match("用户")) {
  			document.getElementById("uemail").focus();
  		}
  	}
  	</script>
</body>
</html>